using System;
using System.Collections.Generic;

namespace Atomic.Libraries.Jobs
{
	[Serializable]
	public class JobSubmitOptionCollection
	{
		private ReadOnlyList<IJobSubmitOption> options;

		public JobSubmitOptionCollection(IEnumerable<IJobSubmitOption> options)
		{
			this.options = new ReadOnlyList<IJobSubmitOption>(options);
		}

		public JobSubmitOptionCollection(params IJobSubmitOption[] options)
			: this((IEnumerable<IJobSubmitOption>)options)
		{
		}

		public ReadOnlyList<IJobSubmitOption> Options
		{
			get
			{
				return options;
			}
		}
	}
}
